﻿using System;
using System.Web.UI;
using DevExpress.Web.ASPxEditors;
using FlexySys.Common.Items;
using FlexySys.Common.Attributes;
using FlexySys.Web.Core;


namespace Web.Control.Item.UserControl
{
    //~/Control/Item/FlexySave.ascx
    [CommonControl("Button", "~/Control/Item/UserControl/FlexyButton.ascx", "")]
    public partial class FlexyButton : CommonControl, ICommonCommand 
    {

        protected void btnSave_Click(object sender, EventArgs e)
        {
            if(ExecuteCommand != null)
                ExecuteCommand(this, new CommonCommandEventArgs(CommandType.Save));

            
        }

        #region ICommonCommand Members

        public event CommonCommandEventHandler ExecuteCommand;

        #endregion
    }
}